package list;

import java.util.Arrays;
import java.util.List;

public class ArrayTest {

    public static void main(String[] args) {
        try {
            String[] array = {"1", "2","3"};
            List<String> list = Arrays.asList(array);
            System.out.println(list);
            list.add("4");
            System.out.println(list);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
